var div1 = document.querySelectorAll(".ltart1")
console.log(div1)
var div2 = document.querySelectorAll(".ltart2")
console.log(div2)
var index = 0;
setInterval(function () {
    index++;
    for (var i = 0; i < div1.length; i++) {
        // 12次一个循环，所以对12取余，这次循环中的第几次计时
        if (index % 12 == 4) {
            div1[i].style = "transform: rotateY(0deg);opacity: 1;"
            // div2.style = "transform: rotateY(90deg);opacity: 0;"

        }
        if (index % 12 == 5) {
            div1[i].style = "transform: rotateY(90deg);opacity: 0;"
            // div2.style = "transform: rotateY(90deg);opacity: 0;"

        }
        if (index % 12 == 6) {
            // div1.style = "transform: rotateY(90deg);opacity: 0;"
            div2[i].style = "transform: rotateY(0deg);opacity: 1;"

        }
        if (index % 12 == 10) {
            div1[i].style = "transform: rotateY(90deg);opacity: 0;"
            // div2.style = "transform: rotateY(0deg);opacity: 1;"

        }
        if (index % 12 == 11) {
            // div1.style = "transform: rotateY(90deg);opacity: 0;"
            div2[i].style = "transform: rotateY(90deg);opacity: 0;"
        }
        if (index % 12 == 0) {
            div1[i].style = "transform: rotateY(0deg);opacity: 1;"
            // div2.style = "transform: rotateY(90deg);opacity: 0;"
        }
    }


}, 500)